import request from '@/utils/request'

// 仓库设置
export function getStorehouseInfoList(data) {
  return request({
    url: '/api/materialConsumableManage/storehouseInfo/getStorehouseInfoList',
    method: 'post',
    data
  })
}

export function addStorehouseInfo(data) {
  return request({
    url: '/api/materialConsumableManage/storehouseInfo/addStorehouseInfo',
    method: 'post',
    data
  })
}

export function updateStorehouseInfo(data) {
  return request({
    url: '/api/materialConsumableManage/storehouseInfo/updateStorehouseInfo',
    method: 'post',
    data
  })
}

export function deleteStorehouseInfo(params) {
  return request({
    url: '/api/materialConsumableManage/storehouseInfo/deleteStorehouseInfo',
    method: 'post',
    params
  })
}

export function getStorehouseInfoDetail(params) {
  return request({
    url: '/api/materialConsumableManage/storehouseInfo/getStorehouseInfoDetail',
    method: 'post',
    params
  })
}

// 项目自购入库
export function getProjectPurchaseStorehouseBasicInfoList(data) {
  return request({
    url: '/api/materialConsumableManage/projectPurchaseStorehouseInfo/getProjectPurchaseStorehouseBasicInfoList',
    method: 'post',
    data
  })
}

export function getProjectPurchaseStorehouseFinishInfoList(data) {
  return request({
    url: '/api/materialConsumableManage/projectPurchaseStorehouseInfo/getProjectPurchaseStorehouseFinishInfoList',
    method: 'post',
    data
  })
}

export function addProjectPurchaseStorehouseInfo(data) {
  return request({
    url: '/api/materialConsumableManage/projectPurchaseStorehouseInfo/addProjectPurchaseStorehouseInfo',
    method: 'post',
    data
  })
}

export function updateProjectPurchaseStorehouseInfo(data) {
  return request({
    url: '/api/materialConsumableManage/projectPurchaseStorehouseInfo/updateProjectPurchaseStorehouseInfo',
    method: 'post',
    data
  })
}

export function deleteProjectPurchaseStorehouseInfo(params) {
  return request({
    url: '/api/materialConsumableManage/projectPurchaseStorehouseInfo/deleteProjectPurchaseStorehouseInfo',
    method: 'post',
    params
  })
}

export function getProjectPurchaseStorehouseInfoDetail(params) {
  return request({
    url: '/api/materialConsumableManage/projectPurchaseStorehouseInfo/getProjectPurchaseStorehouseInfoDetail',
    method: 'post',
    params
  })
}

// 临时采购入库
export function getTempPurchaseStorehouseInfoList(data) {
  return request({
    url: '/api/materialConsumableManage/tempPurchaseStorehouseInfo/getTempPurchaseStorehouseInfoList',
    method: 'post',
    data
  })
}

export function addTempPurchaseStorehouseInfo(data) {
  return request({
    url: '/api/materialConsumableManage/tempPurchaseStorehouseInfo/addTempPurchaseStorehouseInfo',
    method: 'post',
    data
  })
}

export function updateTempPurchaseStorehouseInfo(data) {
  return request({
    url: '/api/materialConsumableManage/tempPurchaseStorehouseInfo/updateTempPurchaseStorehouseInfo',
    method: 'post',
    data
  })
}

export function deleteTempPurchaseStorehouseInfo(params) {
  return request({
    url: '/api/materialConsumableManage/tempPurchaseStorehouseInfo/deleteTempPurchaseStorehouseInfo',
    method: 'post',
    params
  })
}

export function getTempPurchaseStorehouseInfoDetail(params) {
  return request({
    url: '/api/materialConsumableManage/tempPurchaseStorehouseInfo/getTempPurchaseStorehouseInfoDetail',
    method: 'post',
    params
  })
}

// 材料领用单
export function getMaterialRequisitionFormBasicInfoList(data) {
  return request({
    url: '/api/materialConsumableManage/consumeReceiptInfo/getConsumeReceiptBasicInfoList',
    method: 'post',
    data
  })
}

export function getMaterialRequisitionFormFinishInfoList(data) {
  return request({
    url: '/api/materialConsumableManage/consumeReceiptInfo/getConsumeReceiptFinishInfoList',
    method: 'post',
    data
  })
}

export function addMaterialRequisitionFormInfo(data) {
  return request({
    url: '/api/materialConsumableManage/consumeReceiptInfo/addConsumeReceiptInfo',
    method: 'post',
    data
  })
}

export function updateMaterialRequisitionFormInfo(data) {
  return request({
    url: '/api/materialConsumableManage/consumeReceiptInfo/updateConsumeReceiptInfo',
    method: 'post',
    data
  })
}

export function deleteMaterialRequisitionFormInfo(params) {
  return request({
    url: '/api/materialConsumableManage/consumeReceiptInfo/deleteConsumeReceiptInfo',
    method: 'post',
    params
  })
}

export function getMaterialRequisitionFormInfoDetail(params) {
  return request({
    url: '/api/materialConsumableManage/consumeReceiptInfo/getConsumeReceiptInfoDetail',
    method: 'post',
    params
  })
}

// 消耗材盘点单
export function getConsumableInventoryListInfoList(data) {
  return request({
    url: '/api/materialConsumableManage/consumeCheckInfo/getConsumeCheckInfoList',
    method: 'post',
    data
  })
}

export function addConsumableInventoryListInfo(data) {
  return request({
    url: '/api/materialConsumableManage/consumeCheckInfo/addConsumeCheckInfo',
    method: 'post',
    data
  })
}

export function updateConsumableInventoryListInfo(data) {
  return request({
    url: '/api/materialConsumableManage/consumeCheckInfo/updateConsumeCheckInfo',
    method: 'post',
    data
  })
}

export function deleteConsumableInventoryListInfo(params) {
  return request({
    url: '/api/materialConsumableManage/consumeCheckInfo/deleteConsumeCheckInfo',
    method: 'post',
    params
  })
}

export function getConsumableInventoryListInfoDetail(params) {
  return request({
    url: '/api/materialConsumableManage/consumeCheckInfo/getConsumeCheckInfoDetail',
    method: 'post',
    params
  })
}
